﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Shopping Cart</title>

    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
</head>
<body>
    <div class="container">
        <header class="nn-header row">
            <h1 class="nn-company">Java Technology Suite</h1>
            <h5 class="nn-slogan">The center point of the professional programming</h5>
            <img class="nn-logo" src="/images/header-object.png" />
        </header>

        <div class="navbar navbar-inverse row">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
            </div>
            <div class="navbar-collapse collapse">
                @Html.Partial("_Menu")
            </div>
        </div>

        <div class="nn-sheet row">

            <article class="col-md-9">
                <div class="nn-body">
                    @RenderBody()
                </div>
            </article>

            <aside class="col-md-3">
		        <br/>
                <!--Cart Info-->
                @Html.Partial("_CartInfo")
                <!--/Cart Info-->

                <!--Search-->
                @Html.Partial("_Search")
                <!--/Search-->

                <!--Chủng loại-->
                @Html.Action("CategoryMenu", "Home")
                <!--/Chủng loại-->

                <!--Nhà cung cấp-->
                @Html.Action("SupplierMenu", "Home")
                <!--/Nhà cung cấp-->

                <!--Hàng đặc biệt-->
                @Html.Partial("_Special")
                <!--/Hàng đặc biệt-->
            </aside>
        </div>
        <footer class="row" style="text-align:center">
            <p>&copy; 06-2014 - ASP.NET MVC 5</p>
        </footer>
    </div>

    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/bootstrap")
    @RenderSection("scripts", required: false)

    <script>
        $(function () {
            $("a[data-lang]").click(function () {
                expiry = new Date();
                expiry.setDate(expiry.getDate() + 30);

                lang = $(this).attr("data-lang");
                document.cookie = "lang=" + lang
                    + ";expires=" + expiry.toGMTString() + ";path=/";

                // Tải lại để gửi cookie lên server
                location.reload();
            });
        });
    </script>
</body>
</html>